﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.FactoryManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.FactoryManagement.EncodeSchemeVMs
{
    public partial class EncodeSchemeTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._EncodeScheme._Name")]
        public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.Name);
        [Display(Name = "_Model._EncodeScheme._Code")]
        public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.Code);
        [Display(Name = "_Model._EncodeScheme._FormName")]
        public ExcelPropety FormName_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.FormName);
        [Display(Name = "_Model._EncodeScheme._FormCode")]
        public ExcelPropety FormCode_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.FormCode);
        [Display(Name = "_Model._EncodeScheme._SerialNumber")]
        public ExcelPropety SerialNumber_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.SerialNumber);
        [Display(Name = "_Model._EncodeScheme._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.Remark);
        [Display(Name = "_Model._EncodeScheme._Active")]
        public ExcelPropety Active_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.Active);
        [Display(Name = "_Model._EncodeScheme._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.CreateTime, true);
        [Display(Name = "_Model._EncodeScheme._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.UpdateTime, true);
        [Display(Name = "_Model._EncodeScheme._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.CreateBy);
        [Display(Name = "_Model._EncodeScheme._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.UpdateBy);
        [Display(Name = "_Model._EncodeScheme._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.IsValid);
        [Display(Name = "_Model._EncodeScheme._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<EncodeScheme>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class EncodeSchemeImportVM : BaseImportVM<EncodeSchemeTemplateVM, EncodeScheme>
    {
            //import

    }

}